import { VuexModule, Module, Action, Mutation, getModule } from 'vuex-module-decorators'

import store from '@/store'
export interface CommonModulesState {
    pageType: String
}

@Module({ namespaced: true, dynamic: true, store, name: 'common' })
class Common extends VuexModule implements CommonModulesState {
    pageType:String = 'platform'
    
    @Mutation
    setPageType(type:string) {
        this.pageType = type
    }
}

export const CommonModule = getModule(Common, store)
